﻿using System.Collections.ObjectModel;
using System.Windows.Input;

using Outcoder;
using Outcoder.UI.Xaml;

namespace CalciumTemplateApp.Views
{
    public class HubViewModel : ViewModel
    {
		public HubViewModel() : base(() => AppResources.Views_Hub_Title)
	    {
			var optionsViewModel = Dependency.Resolve<OptionsViewModel>();
			ViewModels.Add(optionsViewModel);

			var aboutViewModel = Dependency.Resolve<AboutViewModel>();
			ViewModels.Add(aboutViewModel);
	    }

	    readonly DelegateCommand navigateToHubCommand;

		public ICommand NavigateToHubCommand
		{
			get
			{
				return navigateToHubCommand;
			}
		}

		readonly ObservableCollection<ViewModel> viewModels 
			= new ObservableCollection<ViewModel>();

		public ObservableCollection<ViewModel> ViewModels
	    {
		    get
		    {
			    return viewModels;
		    }
	    }
    }
}
